package com.threefish.modules.sys.entity.history;

import com.threefish.common.entity.AbstractBaseEntity;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * @author 黄川 306955302@qq.com
 * @date: 2018/5/10
 * 描述此类：
 */
@Table("sys_quartz_job_run_history")
@Comment("任务执行历史")
public class JobRunHistory extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Name
    @Prev(els = @EL("$me.uuid()"))
    @ColDefine(width = 32, notNull = true)
    @Comment("主键")
    @Column("uuid")
    private String uuid;

    @Comment("定时任务主键")
    @Column("job_id")
    private String jobId;

    @Comment("花费时长")
    @Column("consuming")
    private String consuming;

    @Column("status")
    @Comment("执行情况")
    private boolean status;

    @Column("errorLog")
    @ColDefine(type = ColType.TEXT)
    @Comment("错误日志")
    private String errorLog;


    public String getConsuming() {
        return consuming;
    }

    public void setConsuming(String consuming) {
        this.consuming = consuming;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getErrorLog() {
        return errorLog;
    }

    public void setErrorLog(String errorLog) {
        this.errorLog = errorLog;
    }
}
